package com.mrd.gtimpframe.entity;

import java.io.Serializable;

public class ResultNopassRefKey implements Serializable {
    private String resultId;

    private String notpassId;

    private static final long serialVersionUID = 1L;

    public ResultNopassRefKey(String resultId, String notpassId) {
        this.resultId = resultId;
        this.notpassId = notpassId;
    }

    public ResultNopassRefKey() {
        super();
    }

    public String getResultId() {
        return resultId;
    }

    public void setResultId(String resultId) {
        this.resultId = resultId == null ? null : resultId.trim();
    }

    public String getNotpassId() {
        return notpassId;
    }

    public void setNotpassId(String notpassId) {
        this.notpassId = notpassId == null ? null : notpassId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", resultId=").append(resultId);
        sb.append(", notpassId=").append(notpassId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ResultNopassRefKey other = (ResultNopassRefKey) that;
        return (this.getResultId() == null ? other.getResultId() == null : this.getResultId().equals(other.getResultId()))
            && (this.getNotpassId() == null ? other.getNotpassId() == null : this.getNotpassId().equals(other.getNotpassId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getResultId() == null) ? 0 : getResultId().hashCode());
        result = prime * result + ((getNotpassId() == null) ? 0 : getNotpassId().hashCode());
        return result;
    }
}